WPP:RegisterAction("PHYSGUN", "Touch", "Touch an entity with the physgun.");

WPP:LinkWeapons(WPP_PHYSGUN,"weapon_physgun");

WPP:SetWorldAcess(WPP_PHYSGUN, false)

function WPP.CanTouch(Player,Entity)
	if ( !WPP:IsValid(Entity) ) then
		return;
	end
	
	if ( Entity:IsPlayer() ) then
		return;
	end
	
	return WPP:ValidateAction(WPP_PHYSGUN,Entity,Player);
end

hook.Add("CanPlayerUnfreeze","WPP-CanPlayerUnfreeze",WPP.CanTouch)
hook.Add("PhysgunPickup","WPP-PhysgunPickup",WPP.CanTouch)